<?php

namespace App\Models\Article;

use Illuminate\Database\Eloquent\Model;

/**
 *  文章模型层
 * Class Article
 * @package App\Models\Article
 */
class Article extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'article';

    /**
     * Indicates if the model should be timestamped.
     * @var bool
     */
    public $timestamps = false;

    public function department()
    {
        return $this->belongsTo('App\Models\User\Department','department_ids', 'id');
    }

}
